package com.hl.service;

import com.hl.mapper.PsychologicalKnowledgeMapper;
import com.hl.pojo.PsychologicalKnowledge;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PsychologicalKnowledgeServiceImpl implements PsychologicalKnowledgeService{
    @Autowired
    private PsychologicalKnowledgeMapper mapper;
    @Override
    public Integer add(PsychologicalKnowledge psychologicalKnowledge) {
        return mapper.add(psychologicalKnowledge);
    }

    @Override
    public List<PsychologicalKnowledge> findAll() {
        return mapper.findAll();
    }

    @Override
    public Integer del(Integer id) {
        return mapper.del(id);
    }

    @Override
    public PsychologicalKnowledge findById(Integer id) {
        return mapper.findById(id);
    }

    @Override
    public Integer update(PsychologicalKnowledge psychologicalKnowledge) {
        return mapper.update(psychologicalKnowledge);
    }
}
